﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Model;
using Automobile.service.DAL;
using System.Data;

namespace Automobile.service.BLL
{
    public class ShipmentsBLL
    {
        ShipmentsDAL dal = new ShipmentsDAL();
        /// <summary>
        /// 添加采购进货订单
        /// </summary>
        /// <returns></returns>
        public int AddShioments(Shipments sp, string xml)
        {
            return dal.AddShioments(sp,xml);
        }
        /// <summary>
        /// 零售管理——显示
        /// </summary>
        /// <returns></returns>
        public DataTable ShowShipMents()
        {
            return dal.ShowShipMents();
        }
        /// <summary>
        /// 零售管理——获取零售总行数
        /// </summary>
        /// <returns></returns>
        public int GetShipMentsCount()
        {
            return dal.GetShipMentsCount();
        }
        /// <summary>
        /// 零售管理——查看详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DataTable GetShipMentsMatsByid(int id)
        {
            return dal.GetShipMentsMatsByid(id);
        }
        /// <summary>
        /// 零售管理——根据会员名称查询
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public DataTable GetShipMentsByName(string name)
        {
            return dal.GetShipMentsByName(name);
        }
    }
}
